<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="app">
        <div v-for='item in floor'>
            <h1>{{item.title}}</h1>
            <ul>
                <li v-for='item1 in item.goode'>
                    {{item1.name}}
                    {{item1.price}}
                    {{item1.desc}}
                </li>
            </ul>
        </div>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    const vm = new Vue({
        el: '.app',
        data: {
            floor: [
                {
                    title: '手机',
                    goode: [
                            {
                                name: '商品1',
                                price: 10,
                                desc: '要想健康又长寿'

                            },
                            {
                                name: '商品2',
                                price: 10,
                                desc: '抽烟喝酒吃肥肉'
                            },
                            {
                                name: '商品3',
                                price: 10,
                                desc: '晚睡晚起不锻炼'
                            },
                            {
                                name: '商品4',
                                price: 10,
                                desc: '多和异性交朋友'
                            }
                    ]
                },
                {
                    title:'电脑',
                    goode:[
                        {
                            name: '商品1',
                            price: 10,
                            desc: '要想生活健康又长寿'
                        },
                        {
                            name: '商品2',
                            price: 10,
                            desc: '抽烟喝酒吃肥肉'
                        }
                    ]
                }
            ]
    
        }
    })
</script>

</html>